<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>keyczar.errors</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="keyczar-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Keyczar</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="keyczar-module.html">Package&nbsp;keyczar</a> ::
        Module&nbsp;errors
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="keyczar.errors-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="keyczar.errors-module.html">Module keyczar.errors</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python2.4</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Copyright 2008 Google Inc.</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Licensed under the Apache License, Version 2.0 (the "License");</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># you may not use this file except in compliance with the License.</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># You may obtain a copy of the License at</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># </tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#      http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># </tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Unless required by applicable law or agreed to in writing, software</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># distributed under the License is distributed on an "AS IS" BASIS,</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># See the License for the specific language governing permissions and</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># limitations under the License.</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-docstring">Contains hierarchy of all possible exceptions thrown by Keyczar.</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-docstring">@author: arkajit.dey@gmail.com (Arkajit Dey)</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
<a name="KeyczarError"></a><div id="KeyczarError-def"><a name="L23"></a><tt class="py-lineno">23</tt> <a class="py-toggle" href="#" id="KeyczarError-toggle" onclick="return toggle('KeyczarError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.KeyczarError-class.html">KeyczarError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="KeyczarError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="KeyczarError-expanded"><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates exceptions raised by a Keyczar class."""</tt> </tt>
</div><a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"> </tt>
<a name="BadVersionError"></a><div id="BadVersionError-def"><a name="L26"></a><tt class="py-lineno">26</tt> <a class="py-toggle" href="#" id="BadVersionError-toggle" onclick="return toggle('BadVersionError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.BadVersionError-class.html">BadVersionError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BadVersionError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="BadVersionError-expanded"><a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates a bad version number was received."""</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">   </tt>
<a name="BadVersionError.__init__"></a><div id="BadVersionError.__init__-def"><a name="L29"></a><tt class="py-lineno">29</tt> <a class="py-toggle" href="#" id="BadVersionError.__init__-toggle" onclick="return toggle('BadVersionError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.BadVersionError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">version</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BadVersionError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="BadVersionError.__init__-expanded"><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">    <tt id="link-0" class="py-name" targets="Class keyczar.errors.KeyczarError=keyczar.errors.KeyczarError-class.html"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-0', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Method keyczar.errors.BadVersionError.__init__()=keyczar.errors.BadVersionError-class.html#__init__,Method keyczar.errors.InvalidSignatureError.__init__()=keyczar.errors.InvalidSignatureError-class.html#__init__,Method keyczar.errors.KeyNotFoundError.__init__()=keyczar.errors.KeyNotFoundError-class.html#__init__,Method keyczar.errors.NoPrimaryKeyError.__init__()=keyczar.errors.NoPrimaryKeyError-class.html#__init__,Method keyczar.errors.ShortCiphertextError.__init__()=keyczar.errors.ShortCiphertextError-class.html#__init__,Method keyczar.errors.ShortSignatureError.__init__()=keyczar.errors.ShortSignatureError-class.html#__init__,Method keyczar.keyczar.Keyczar.__init__()=keyczar.keyczar.Keyczar-class.html#__init__,Method keyczar.keyczart._Name.__init__()=keyczar.keyczart._Name-class.html#__init__,Method keyczar.keydata.KeyMetadata.__init__()=keyczar.keydata.KeyMetadata-class.html#__init__,Method keyczar.keydata.KeyVersion.__init__()=keyczar.keydata.KeyVersion-class.html#__init__,Method keyczar.keyinfo.CipherMode.__init__()=keyczar.keyinfo.CipherMode-class.html#__init__,Method keyczar.keyinfo.KeyType.__init__()=keyczar.keyinfo.KeyType-class.html#__init__,Method keyczar.keyinfo._NameId.__init__()=keyczar.keyinfo._NameId-class.html#__init__,Method keyczar.keys.AesKey.__init__()=keyczar.keys.AesKey-class.html#__init__,Method keyczar.keys.AsymmetricKey.__init__()=keyczar.keys.AsymmetricKey-class.html#__init__,Method keyczar.keys.DsaPrivateKey.__init__()=keyczar.keys.DsaPrivateKey-class.html#__init__,Method keyczar.keys.DsaPublicKey.__init__()=keyczar.keys.DsaPublicKey-class.html#__init__,Method keyczar.keys.HmacKey.__init__()=keyczar.keys.HmacKey-class.html#__init__,Method keyczar.keys.Key.__init__()=keyczar.keys.Key-class.html#__init__,Method keyczar.keys.PrivateKey.__init__()=keyczar.keys.PrivateKey-class.html#__init__,Method keyczar.keys.PublicKey.__init__()=keyczar.keys.PublicKey-class.html#__init__,Method keyczar.keys.RsaPrivateKey.__init__()=keyczar.keys.RsaPrivateKey-class.html#__init__,Method keyczar.keys.RsaPublicKey.__init__()=keyczar.keys.RsaPublicKey-class.html#__init__,Method keyczar.keys.SymmetricKey.__init__()=keyczar.keys.SymmetricKey-class.html#__init__,Method keyczar.readers.EncryptedReader.__init__()=keyczar.readers.EncryptedReader-class.html#__init__,Method keyczar.readers.FileReader.__init__()=keyczar.readers.FileReader-class.html#__init__"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-1', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt>  </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">                          <tt class="py-string">"Received a bad version number: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">version</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>  </tt>
</div></div><a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt>
<a name="Base64DecodingError"></a><div id="Base64DecodingError-def"><a name="L33"></a><tt class="py-lineno">33</tt> <a class="py-toggle" href="#" id="Base64DecodingError-toggle" onclick="return toggle('Base64DecodingError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.Base64DecodingError-class.html">Base64DecodingError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Base64DecodingError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Base64DecodingError-expanded"><a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates an error while performing Base 64 decoding."""</tt> </tt>
</div><a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"> </tt>
<a name="InvalidSignatureError"></a><div id="InvalidSignatureError-def"><a name="L36"></a><tt class="py-lineno">36</tt> <a class="py-toggle" href="#" id="InvalidSignatureError-toggle" onclick="return toggle('InvalidSignatureError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.InvalidSignatureError-class.html">InvalidSignatureError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="InvalidSignatureError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="InvalidSignatureError-expanded"><a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates an invalid ciphertext signature."""</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">   </tt>
<a name="InvalidSignatureError.__init__"></a><div id="InvalidSignatureError.__init__-def"><a name="L39"></a><tt class="py-lineno">39</tt> <a class="py-toggle" href="#" id="InvalidSignatureError.__init__-toggle" onclick="return toggle('InvalidSignatureError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.InvalidSignatureError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="InvalidSignatureError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="InvalidSignatureError.__init__-expanded"><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">    <tt id="link-2" class="py-name"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-2', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-3', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"Invalid ciphertext signature"</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line"> </tt>
<a name="KeyNotFoundError"></a><div id="KeyNotFoundError-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="KeyNotFoundError-toggle" onclick="return toggle('KeyNotFoundError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.KeyNotFoundError-class.html">KeyNotFoundError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="KeyNotFoundError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="KeyNotFoundError-expanded"><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates a key with a certain hash id was not found."""</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">   </tt>
<a name="KeyNotFoundError.__init__"></a><div id="KeyNotFoundError.__init__-def"><a name="L45"></a><tt class="py-lineno">45</tt> <a class="py-toggle" href="#" id="KeyNotFoundError.__init__-toggle" onclick="return toggle('KeyNotFoundError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.KeyNotFoundError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hash</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="KeyNotFoundError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="KeyNotFoundError.__init__-expanded"><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">    <tt id="link-4" class="py-name"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-4', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-5', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt>  </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">                          <tt class="py-string">"Key with hash identifier %s not found."</tt> <tt class="py-op">%</tt> <tt id="link-6" class="py-name" targets="Variable keyczar.keys.Key.hash=keyczar.keys.Key-class.html#hash"><a title="keyczar.keys.Key.hash" class="py-name" href="#" onclick="return doclink('link-6', 'hash', 'link-6');">hash</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"> </tt>
<a name="ShortCiphertextError"></a><div id="ShortCiphertextError-def"><a name="L49"></a><tt class="py-lineno">49</tt> <a class="py-toggle" href="#" id="ShortCiphertextError-toggle" onclick="return toggle('ShortCiphertextError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.ShortCiphertextError-class.html">ShortCiphertextError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ShortCiphertextError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="ShortCiphertextError-expanded"><a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates a ciphertext too short to be valid."""</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">   </tt>
<a name="ShortCiphertextError.__init__"></a><div id="ShortCiphertextError.__init__-def"><a name="L52"></a><tt class="py-lineno">52</tt> <a class="py-toggle" href="#" id="ShortCiphertextError.__init__-toggle" onclick="return toggle('ShortCiphertextError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.ShortCiphertextError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">length</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ShortCiphertextError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="ShortCiphertextError.__init__-expanded"><a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">    <tt id="link-7" class="py-name"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-7', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-8', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt>  </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">            <tt class="py-string">"Input of length %s is too short to be valid ciphertext."</tt> <tt class="py-op">%</tt> <tt class="py-name">length</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"> </tt>
<a name="ShortSignatureError"></a><div id="ShortSignatureError-def"><a name="L56"></a><tt class="py-lineno">56</tt> <a class="py-toggle" href="#" id="ShortSignatureError-toggle" onclick="return toggle('ShortSignatureError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.ShortSignatureError-class.html">ShortSignatureError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyczarError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>   </tt>
</div><a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates a signature too short to be valid."""</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">   </tt>
<a name="ShortSignatureError.__init__"></a><div id="ShortSignatureError.__init__-def"><a name="L59"></a><tt class="py-lineno">59</tt> <a class="py-toggle" href="#" id="ShortSignatureError.__init__-toggle" onclick="return toggle('ShortSignatureError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.ShortSignatureError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">length</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ShortSignatureError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="ShortSignatureError.__init__-expanded"><a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">    <tt id="link-9" class="py-name"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-9', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-10', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt>  </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">              <tt class="py-string">"Input of length %s is too short to be valid signature."</tt> <tt class="py-op">%</tt> <tt class="py-name">length</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
<a name="NoPrimaryKeyError"></a><div id="NoPrimaryKeyError-def"><a name="L63"></a><tt class="py-lineno">63</tt> <a class="py-toggle" href="#" id="NoPrimaryKeyError-toggle" onclick="return toggle('NoPrimaryKeyError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="keyczar.errors.NoPrimaryKeyError-class.html">NoPrimaryKeyError</a><tt class="py-op">(</tt><tt class="py-base-class">KeyNotFoundError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>   </tt>
</div><a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">  <tt class="py-docstring">"""Indicates missing primary key."""</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">   </tt>
<a name="NoPrimaryKeyError.__init__"></a><div id="NoPrimaryKeyError.__init__-def"><a name="L66"></a><tt class="py-lineno">66</tt> <a class="py-toggle" href="#" id="NoPrimaryKeyError.__init__-toggle" onclick="return toggle('NoPrimaryKeyError.__init__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="keyczar.errors.NoPrimaryKeyError-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NoPrimaryKeyError.__init__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="NoPrimaryKeyError.__init__-expanded"><a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">    <tt id="link-11" class="py-name"><a title="keyczar.errors.KeyczarError" class="py-name" href="#" onclick="return doclink('link-11', 'KeyczarError', 'link-0');">KeyczarError</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="keyczar.errors.BadVersionError.__init__
keyczar.errors.InvalidSignatureError.__init__
keyczar.errors.KeyNotFoundError.__init__
keyczar.errors.NoPrimaryKeyError.__init__
keyczar.errors.ShortCiphertextError.__init__
keyczar.errors.ShortSignatureError.__init__
keyczar.keyczar.Keyczar.__init__
keyczar.keyczart._Name.__init__
keyczar.keydata.KeyMetadata.__init__
keyczar.keydata.KeyVersion.__init__
keyczar.keyinfo.CipherMode.__init__
keyczar.keyinfo.KeyType.__init__
keyczar.keyinfo._NameId.__init__
keyczar.keys.AesKey.__init__
keyczar.keys.AsymmetricKey.__init__
keyczar.keys.DsaPrivateKey.__init__
keyczar.keys.DsaPublicKey.__init__
keyczar.keys.HmacKey.__init__
keyczar.keys.Key.__init__
keyczar.keys.PrivateKey.__init__
keyczar.keys.PublicKey.__init__
keyczar.keys.RsaPrivateKey.__init__
keyczar.keys.RsaPublicKey.__init__
keyczar.keys.SymmetricKey.__init__
keyczar.readers.EncryptedReader.__init__
keyczar.readers.FileReader.__init__" class="py-name" href="#" onclick="return doclink('link-12', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"No primary key found"</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="keyczar-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Keyczar</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Aug 10 17:05:05 2008
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
